import http from '@/utils/request'
export default {
  /**
   * 查询薪資列表
   * @returns
   */

  async getsalaryListApi(params) {
    return await http.post('/api/salary/list', params)
  },
  //获取部门下拉列表
  async getAllListApi(params) {
    return await http.get('/api/department/listAll', params)
  },
  /**
   * 添加/编辑
   * @returns
   */
  async addSalary(params) {
    return await http.post('/api/salary/save', params)
  },

  /**
   * 删除薪資
   * @returns
   */
  async deleteSalary(params) {
    return await http.post('/api/salary/delete', params)
  }
}
